package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("ap_collection")
@ApiModel(value="ApCollection", description="文章收藏表")
public class ApCollection {
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户 id")
    @TableField("entry_id")
    private Long entryId;

    @ApiModelProperty(value = "文章 id")
    @TableField("article_id")
    private Long articleId;

    @ApiModelProperty(value = "点赞内容类型: 0 文章, 1 动态")
    @TableField("type")
    private Short type;

    @ApiModelProperty(value = "收藏时间")
    @TableField("collection_time")
    private LocalDateTime collectionTime;

    @ApiModelProperty(value = "发布时间")
    @TableField("published_time")
    private LocalDateTime publishTime;


}
